package com.lu.statistics.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lu.statistics.entity.TbUser;
import com.lu.statistics.mapper.TbUserMapper;
import com.lu.statistics.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Set;

@Service
public class TbUserServiceImpl extends ServiceImpl<TbUserMapper, TbUser> implements TbUserService {
    @Autowired
    private TbUserMapper userMapper;

    @Override
    public TbUser queryUserByUserNameAndPassword(String userName, String password) {
        return userMapper.queryUserByUserNameAndPassword(userName, password);
    }

    @Override
    public Set<String> queryUserPermissionsByUser(int userId) {
        return userMapper.queryUserPermissionsByUser(userId);
    }
}
